﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpSoft.Data
{
    /// <summary>
    /// 查询分页数据
    /// </summary>
    /// <typeparam name="TModel"></typeparam>
    public class SqlPagination<TModel>
    {
        /// <summary>
        /// 当前页索引
        /// </summary>
        public int CurrentPage { get; set; }
        /// <summary>
        /// 页面数量
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 所有数据数量（包括所有分页的数据）
        /// </summary>
        public int AllDataCount { get; set; }

        public TModel[] PageData { get; set; }
    }
}
